package com.liqing.movecomment.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;


@ApiModel("插入评论模型")
public class CommentPostVo implements Serializable {
    /**
     */
    @ApiModelProperty("对应id")
    private Integer otherId;
    /**
     */
    @ApiModelProperty("一级评论id，如果本身是一级评论，则插入0")
    private String root;
    /**
     */
    @ApiModelProperty("被评论的评论id")
    private String parent;
    /*
     *一级：message： 期待1
     * 二级：message：期待2
     * 三级：message：回复@立青：期待3
     * */
    /**
     */
    @ApiModelProperty("评论的消息")
    private String message;
    @ApiModelProperty("用户id")
    private int replyId;
    /**
     */
    @ApiModelProperty("被评论的用户的id")
    private Integer replyedId;

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public CommentPostVo() {
    }
    //</editor-fold>

    /**
     */
    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public Integer getOtherId() {
        return this.otherId;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="delombok">
    /**
     */
    @SuppressWarnings("all")
    public String getRoot() {
        return this.root;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="delombok">
    /**
     */
    @SuppressWarnings("all")
    public String getParent() {
        return this.parent;
    }

    /**
     */
    @SuppressWarnings("all")
    public String getMessage() {
        return this.message;
    }

    @SuppressWarnings("all")
    public int getReplyId() {
        return this.replyId;
    }

    /**
     */
    @SuppressWarnings("all")
    public Integer getReplyedId() {
        return this.replyedId;
    }

    /**
     */
    @SuppressWarnings("all")
    public void setOtherId(final Integer otherId) {
        this.otherId = otherId;
    }

    /**
     */
    @SuppressWarnings("all")
    public void setRoot(final String root) {
        this.root = root;
    }

    /**
     */
    @SuppressWarnings("all")
    public void setParent(final String parent) {
        this.parent = parent;
    }

    /**
     */
    @SuppressWarnings("all")
    public void setMessage(final String message) {
        this.message = message;
    }

    @SuppressWarnings("all")
    public void setReplyId(final int replyId) {
        this.replyId = replyId;
    }

    /**
     */
    @SuppressWarnings("all")
    public void setReplyedId(final Integer replyedId) {
        this.replyedId = replyedId;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof CommentPostVo)) return false;
        final CommentPostVo other = (CommentPostVo) o;
        if (!other.canEqual((Object) this)) return false;
        if (this.getReplyId() != other.getReplyId()) return false;
        final Object this$otherId = this.getOtherId();
        final Object other$otherId = other.getOtherId();
        if (this$otherId == null ? other$otherId != null : !this$otherId.equals(other$otherId)) return false;
        final Object this$replyedId = this.getReplyedId();
        final Object other$replyedId = other.getReplyedId();
        if (this$replyedId == null ? other$replyedId != null : !this$replyedId.equals(other$replyedId)) return false;
        final Object this$root = this.getRoot();
        final Object other$root = other.getRoot();
        if (this$root == null ? other$root != null : !this$root.equals(other$root)) return false;
        final Object this$parent = this.getParent();
        final Object other$parent = other.getParent();
        if (this$parent == null ? other$parent != null : !this$parent.equals(other$parent)) return false;
        final Object this$message = this.getMessage();
        final Object other$message = other.getMessage();
        if (this$message == null ? other$message != null : !this$message.equals(other$message)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof CommentPostVo;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getReplyId();
        final Object $otherId = this.getOtherId();
        result = result * PRIME + ($otherId == null ? 43 : $otherId.hashCode());
        final Object $replyedId = this.getReplyedId();
        result = result * PRIME + ($replyedId == null ? 43 : $replyedId.hashCode());
        final Object $root = this.getRoot();
        result = result * PRIME + ($root == null ? 43 : $root.hashCode());
        final Object $parent = this.getParent();
        result = result * PRIME + ($parent == null ? 43 : $parent.hashCode());
        final Object $message = this.getMessage();
        result = result * PRIME + ($message == null ? 43 : $message.hashCode());
        return result;
    }

    @Override
    @SuppressWarnings("all")
    public String toString() {
        return "CommentPostVo(otherId=" + this.getOtherId() + ", root=" + this.getRoot() + ", parent=" + this.getParent() + ", message=" + this.getMessage() + ", replyId=" + this.getReplyId() + ", replyedId=" + this.getReplyedId() + ")";
    }
    /**
     *
     */
    //</editor-fold>
}
